package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.SmsCouponMapper;
import org.code.mallspringboot.pojo.SmsCoupon;
import org.code.mallspringboot.service.SmsCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class SmsCouponServiceImpl implements SmsCouponService{

    @Autowired
    private SmsCouponMapper smsCouponMapper;

    @Override
    public List<SmsCoupon> listByProduct(int productId) {
        return smsCouponMapper.listByProduct(productId);
    }

    @Override
    public int update_count(int id) {
        return smsCouponMapper.update_count(id);
    }
}




